using CodePlex.CodePlexClientLibrary;

namespace CodePlex.CodePlexClient
{
    public class AppConfig : AppConfigBase
    {
        public override string AnonymousUsername
        {
            get { return GetSetting("AnonymousUsername") ?? "anonymous"; }
        }

        public override string CodePlexWebServiceUrl
        {
            get { return GetSetting("CodePlexWebServiceUrl") ?? "http://www.codeplex.com/services/ProjectInfoService.asmx"; }
        }

        protected override string EnvironmentPrefix
        {
            get { return "Cpc"; }
        }

        public override bool ForceBasicAuth
        {
            get { return ParseBool(GetSetting("ForceBasicAuth"), true); }
        }

        public override bool TryDefaultCredentials
        {
            get { return false; }
        }
    }
}